package com.example.consumer01.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "provider")
public interface UserServiceClient {

    @GetMapping("/api/users/{userId}") // 声明要调用的具体接口路径
//    @SentinelResource(value = "testSentinel") //搞不出来在feign调用的client里集成sentinel
    String getUserById(@PathVariable("userId") Long userId); // 声明要调用的方法
}